<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="style.css">
  <title>用户注册</title>
</head>

<body>
  <!-- 保持与登录页面相同的结构 -->
  <div class="login-container">
      <h1>用户注册</h1>
      <form id="register-form">
          <div class="input-group">
              <label for="reg-username">用户名</label>
              <input type="text" id="reg-username" class="input-field">
          </div>
          <div class="input-group">
              <label for="reg-password">密码</label>
              <input type="password" id="reg-password" class="input-field">
          </div>
          <div class="input-group">
              <label for="reg-confirm">确认密码</label>
              <input type="password" id="reg-confirm" class="input-field">
          </div>
          <div class="action-buttons">
              <button type="submit" class="btn btn-primary">注册</button>
              <a href="index.html" class="btn btn-secondary">返回登录</a>
          </div>
      </form>
      <p id="reg-error-message" class="error-message"></p>
  </div>
  <script src="register.js"></script>
</body>

</html>
